<?php
namespace User\Model;
use Think\Model;

class OrganiztionModel extends Model
{
    public function getOrganiztionList($eventId, $pageNum=1, $teamName='', $count=4)
    {
        return $this->where(array('event_id'=>$eventId, 'name'=>array('like','%'.$teamName.'%')))
                    ->order('create_time')
                    ->page($pageNum, $count)
                    ->select();
    }
}
?>
